<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>星座测试统计 - 职业倾向</title>
    <link rel="stylesheet" href="style.css">
    <!-- 引入Chart.js库 -->
    <script src="chart.js"></script>
    <!-- 引入自定义图表脚本 -->
    <script src="charts.js"></script>
</head>
<body>
<div class="page">
    <!-- 内容容器 -->
    <div class="content-container">
        <!-- Tab导航 -->
        <div class="tab-bar">
            <div class="tab-container">
                <a href="PersonalityAnalysis.html" class="tab">
                    性格
                    <div class="tab-indicator"></div>
                </a>
                <a href="LoveCompatibility.html" class="tab">
                    爱情
                    <div class="tab-indicator"></div>
                </a>
                <a href="CareerPredisposition.html" class="tab active">
                    职业
                    <div class="tab-indicator"></div>
                </a>
                <a href="LifestylePatterns.html" class="tab">
                    生活
                    <div class="tab-indicator"></div>
                </a>
            </div>
        </div>
        <!-- 主内容区 -->
        <main>
            <!-- 头部信息 -->
            <div class="card">
                <h1>星座职业倾向</h1>
                <p>探索不同星座适合的职业类型与发展方向</p>
            </div>

            <!-- 星座职业分布图表 -->
            <div class="card">
                <h2>星座职业领域分布</h2>
                <div class="chart-container">
                    <canvas id="careerChart"></canvas>
                </div>
            </div>

            <!-- 各星座典型职业倾向 -->
            <div class="card">
                <h2>各星座典型职业倾向</h2>
                <div class="career-scroll-container">
                    <div class="career-scroll-item" style="background-color: rgba(255, 59, 48, 0.05);">
                        <h3 style="color: #FF3B30;">白羊座</h3>
                        <p>企业家、运动员、军人、消防员、销售人员</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(255, 149, 0, 0.05);">
                        <h3 style="color: #FF9500;">金牛座</h3>
                        <p>财务顾问、银行家、厨师、艺术家、农业专家</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(255, 204, 0, 0.05);">
                        <h3 style="color: #FFCC00;">双子座</h3>
                        <p>记者、教师、翻译、公关、销售代表</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(52, 199, 89, 0.05);">
                        <h3 style="color: #34C759;">巨蟹座</h3>
                        <p>护士、社工、厨师、历史学家、房地产经纪人</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(255, 149, 0, 0.05);">
                        <h3 style="color: #FF9500;">狮子座</h3>
                        <p>演员、导演、企业家、管理者、政治家</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(52, 199, 89, 0.05);">
                        <h3 style="color: #34C759;">处女座</h3>
                        <p>分析师、编辑、程序员、医生、科学家</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(88, 86, 214, 0.05);">
                        <h3 style="color: #5856D6;">天秤座</h3>
                        <p>律师、外交官、设计师、公关、调解员</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(175, 82, 222, 0.05);">
                        <h3 style="color: #AF52DE;">天蝎座</h3>
                        <p>侦探、心理学家、科学家、医生、调查记者</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(255, 45, 85, 0.05);">
                        <h3 style="color: #FF2D55;">射手座</h3>
                        <p>旅行家、导游、教师、哲学家、探险家</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(90, 200, 250, 0.05);">
                        <h3 style="color: #5AC8FA;">摩羯座</h3>
                        <p>工程师、经理、行政官员、会计、建筑师</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(0, 122, 255, 0.05);">
                        <h3 style="color: #007AFF;">水瓶座</h3>
                        <p>科学家、发明家、设计师、程序员、社会工作者</p>
                    </div>
                    <div class="career-scroll-item" style="background-color: rgba(175, 82, 222, 0.05);">
                        <h3 style="color: #AF52DE;">双鱼座</h3>
                        <p>艺术家、诗人、音乐家、演员、慈善工作者</p>
                    </div>
                </div>
            </div>

            <!-- 职业成功指数 -->
            <div class="card">
                <h2>星座职业成功指数</h2>
                <div class="success-index">
                    <div class="index-item">
                        <div class="index-header">
                            <span class="zodiac-name">狮子座</span>
                            <span class="success-score">领导力: 95%</span>
                        </div>
                        <div class="index-bar">
                            <div class="index-fill index-fill-leo" style="width: 95%;"></div>
                        </div>
                    </div>
                    <div class="index-item">
                        <div class="index-header">
                            <span class="zodiac-name">处女座</span>
                            <span class="success-score">工作效率: 90%</span>
                        </div>
                        <div class="index-bar">
                            <div class="index-fill index-fill-virgo" style="width: 90%;"></div>
                        </div>
                    </div>
                    <div class="index-item">
                        <div class="index-header">
                            <span class="zodiac-name">天秤座</span>
                            <span class="success-score">团队协作: 92%</span>
                        </div>
                        <div class="index-bar">
                            <div class="index-fill index-fill-libra" style="width: 92%;"></div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>

<script>
    // 页面加载完成后初始化图表
    document.addEventListener('DOMContentLoaded', function() {
        // 初始化职业倾向图表
        initCareerCharts();
    });
</script>
</body>
</html>